package cw.entity;

public class Book {
    private String id;

    private String name;

    private String title;

    private Float price;

    private Integer yr;

    private String description;

    private Integer saleamount;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Integer getYr() {
        return yr;
    }

    public void setYr(Integer yr) {
        this.yr = yr;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Integer getSaleamount() {
        return saleamount;
    }

    public void setSaleamount(Integer saleamount) {
        this.saleamount = saleamount;
    }

	@Override
	public String toString() {
		return "Book [id=" + id + ", name=" + name + ", title=" + title
				+ ", price=" + price + ", yr=" + yr + ", description="
				+ description + ", saleamount=" + saleamount + "]";
	}

	public Book() {
		super();
	}

	public Book(String id, String name, String title, Float price, Integer yr,
			String description, Integer saleamount) {
		super();
		this.id = id;
		this.name = name;
		this.title = title;
		this.price = price;
		this.yr = yr;
		this.description = description;
		this.saleamount = saleamount;
	}
}